package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * 交通服务表(GeConTouristTraffic)实体类
 *
 * @author makejava
 * @since 2021-06-09 14:07:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_tourist_traffic")
@ApiModel(value="GeConTouristTraffic对象", description="交通服务表")
public class GeConTouristTraffic implements Serializable {

    private static final long serialVersionUID = 920034536288138336L;

    @ApiModelProperty(value = "交通服务主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "交通服务标题")
    private String title;

    @ApiModelProperty(value = "交通服务内容")
    private String content;

    @ApiModelProperty(value = "交通服务缩略图")
    private String thumbnail;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "审核时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime authTime;

    @ApiModelProperty(value = "交通服务排序")
    private Integer sort;

    @ApiModelProperty(value = "是否置顶 0.否 1.是")
    private Integer isTop;

    @ApiModelProperty(value = "置顶文本")
    @TableField(exist = false)
    private String isTopText;

    @ApiModelProperty(value = "状态 0.待审核 1.已审核 2.审核失败 3.已发布 4未提交")
    private String status;

    @ApiModelProperty(value = "状态文本")
    @TableField(exist = false)
    private String statusText;

    @ApiModelProperty(value = "是否删除 0正常，1删除")
    private Integer isDelete;


}
